home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1948 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.2 KB  |  40 lines

  1. Newsgroups: comp.lang.c++
  2. Path: cix.compulink.co.uk!usenet
  3. From: henri@cix.compulink.co.uk ("Henry Andrew")
  4. Subject: Re: Fastest way to index thru an array????
  5. Message-ID: <DL68ow.MyG@cix.compulink.co.uk>
  6. Organization: Compulink Information eXchange
  7. References: <30F6B0F6.75E3@imsisoft.com>
  8. Date: Sun, 14 Jan 1996 12:43:44 GMT
  9. X-News-Software: Ameol32
  10.  
  11. There is only one way to tell how fast something is and that is to time 
  12. it.  I was sure I knew the fastest way to work with arrays and I was just 
  13. about to tell everyone about it (at work) when it occurred to me to try 
  14. it.  On HP/UX and Digital Alpha (OSF1) I was right (by a very big margin) 
  15. but on AIX CSet++ I was wrong.  I looked at the asm for all three and was 
  16. very surprised.  I did not send my note.
  17.  
  18. Yours &c. Henry
  19.  
  20. > Ari Lukumies wrote:
  21. > > Ashutosh Gokhale <ashutosh> wrote:
  22. > > 
  23. > > >Suppose I have an array A[][][] which I declare as
  24. > > >       double ***A and then assign memory to it using new operator.
  25. > > >Now consider that A has dimensions A[50][60][70]. Then I can index 
  26. > > thru ALL
  27. > > >entries of A using[...]
  28. > > Try this:
  29.  
  30. [stuff cut]
  31.  
  32. > > Later,
  33. > > AriL
  34. > > 
  35. > > All my opinions are mine and mine alone.
  36. > Oh yeah!
  37. > Victor.
  38.